package com.wang.study.service;

import com.github.pagehelper.PageInfo;
import com.wang.study.annotation.MyAnnotation;
import com.wang.study.model.Goods;

import java.util.List;


public interface GoodsService {
    //查询所有的商品详情
    PageInfo<Goods> findGoodsByCid(Integer cid, Integer pageNum, Integer pageSize);
    //查询id下的商品详情
    Goods selectGoodById(String cid);
    //查询所有的商品
    PageInfo<Goods> findGoodsAll(Integer pageNum,Integer pagesize);
    //首页第一次加载分页查询所有的商品
    PageInfo<Goods> findGoodsByPageNum(Integer pageNum, Integer pageSize);

    List<Goods> findGoodsAll1();
    @MyAnnotation
    Integer delGoodsById(Integer valueOf);
    @MyAnnotation
    Integer addGoods(Integer id,String author, String publisher, String publishtime, String decription, String image, String salesprice, String status, String uptime);
    @MyAnnotation
    Integer updateGoodById(Integer id,String imagePath);

    List<Goods> likeSearch(String name);
}
